package com.zgjkhis.modules.quartz.task;

import com.zgjkhis.modules.statistics.service.StoreDrugService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 处方药品统计：每日归档
 * @Author yxl
 * @Description
 * @Date 2021/12/24 11:33
 **/
@Slf4j
@Component
public class InfoDrugPigeonholeTask {

    @Resource
    private StoreDrugService service;

    /**
     * 开始归档
     */
    public void run() {
        log.info(String.format(".................... task.queryLogistics start"));
        // 2021-12-15
//        this.service.dayPigeonhole(null);
        this.service.dayPigeonholeForTask(null);
        log.info(String.format(".................... task.queryLogistics end"));
    }

}
